package com.plan.dao.mapper.card;

import com.plan.controller.card.request.DayPlanStatPageListReq;
import com.plan.entity.card.DayPlanStat;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DayPlanStatMapper {

    int insert(DayPlanStat dayPlanStat);

    int batchInsert(List<DayPlanStat> statList);

    int update(DayPlanStat dayStat);

    DayPlanStat getOneByYearMonthDay(@Param("teamId") Long teamId, @Param("cardId") Long cardId, @Param("yearMonthDay") Integer yearMonthDay);

    void delete(@Param("teamId") Long teamId, @Param("cardId") Long cardId);

    List<DayPlanStat> getPageList(DayPlanStatPageListReq req);

    int realDeleteByCardId(Long teamId, Long cardId);
}
